package com.gopay.common.constants.cbrmb;

/**
 * 外币提现审核状态
 * 
 * @author huangcheng 
 * @2016-1-10 18:35:41 www.gopay.com.cn Inc.All rights reserved.
 */
public enum CbrmbDrawApprovalStatus {

	/**
	 * 待审核
	 */
	APPROVAL_PENDING("0"),
	/**
	 * 审核通过
	 */
	APPROVAL_PASSED("1"),

	/**
	 * 审核未通过
	 */
	APPROVAL_NOTPASS("2");

	public final String value;

	private CbrmbDrawApprovalStatus(String value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return this.value;
	}
	
	/**
	 * 根据枚举类型的字符串值 获取 相应的枚举变量
	 */
	public static CbrmbDrawApprovalStatus get(String str){
		switch (str) {
		case "APPROVAL_PENDING":
			return APPROVAL_PENDING;
		case "APPROVAL_PASSED":
			return APPROVAL_PASSED;
		case "APPROVAL_NOTPASS":
			return APPROVAL_NOTPASS;
		default:
			return null;
		}
	}
}
